package com.zhiche.lisa.mdm.service.upload.impl;


import com.zhiche.lisa.core.utils.qiniu.config.QiniuConfig;
import com.zhiche.lisa.core.utils.qiniu.util.QiniuUtils;
import com.zhiche.lisa.mdm.service.upload.UploadService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;




/**
 * 上传 service impl
 * @since 2018-06-05
 * @author lbl
 */
@Service
public class UploadServiceImpl implements UploadService {

    @Autowired
    private QiniuConfig qiniuConfig;

    @Override
    public String getStrUrl(String key){
        String downloadUrl = QiniuUtils.generateDownloadTicket(qiniuConfig.getDownloadUrl(), key);
        return downloadUrl;
    }


}
